<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<?=url('adminuser/editself');?>">
            <input type="hidden" name="id" value="<?=$info['id']?>" />
            <div class="layui-form-item">
              <label class="layui-form-label">域名</label>
              <div class="layui-input-block">
                <input type="text" name="domain" value="<?=$info['domain']?>" required lay-verify="required" placeholder="请输入域名" autocomplete="off" class="layui-input">
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">网站标题</label>
              <div class="layui-input-block">
                <input type="text" name="website_title" value="<?=$info['website_title']?>" required lay-verify="required" placeholder="请输入网站标题" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">网站LOGO</label>
              <div class="layui-input-block">
                  <button type="button" class="layui-btn" _url="<?=url('api/upimg')?>" id="myupimg">
                    <i class="layui-icon">&#xe67c;</i>上传二维码
                  </button>
                  <input type="hidden" name="pic" value="<?=$info['pic']?>" />
                  <div style="display:inline-block;position:relative;">
                      <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;<?php if(!$info['pic']):?>display:none;<?php endif;?>" id="closeimg_wx">x</span>
                      <img id="pic" height=50 src="<?=$info['pic']?>" />
                  </div>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">网站关键词</label>
              <div class="layui-input-block">
                <textarea name="website_keyword" placeholder="请输入网站关键词" class="layui-textarea"><?=$info['website_keyword']?></textarea>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">网站描述</label>
              <div class="layui-input-block">
                <textarea name="website_description" placeholder="请输入网站描述" class="layui-textarea"><?=$info['website_description']?></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">登陆名</label>
              <div class="layui-input-block">
                <input type="text" name="username" value="<?=$info['username']?>" required lay-verify="required" placeholder="请输入登陆名" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">登录密码</label>
              <div class="layui-input-block">
                <input type="text" name="password" value="" placeholder="请输入登录密码,不填写则为不改变" autocomplete="off" class="layui-input">
              </div>
            </div>

          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();
});
</script>
